package com.monitor.pubInter;


import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author sunke
* @Date 2019-09-09 16:31:10
* @description
*/

public interface IBaseFindMapper<T extends AbstractBaseDoMain, TS extends BaseSearch, KeyType> {
    T getDetail(KeyType id);

    List<T> getList(@Param("search")TS search);

    int getListCount(@Param("search")TS search);

    /**
     * 返回全部数据
     *
     * @param search
     * @return
     */
    List<T> getAllList(@Param("search") TS search);
}
